<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <%@ include file="/WEB-INF/admin/common/base.jsp" %>
    <jsp:include page="/WEB-INF/admin/common/head.jsp"/>
    <title>用户登录</title>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-4 col-md-offset-4">
            <div class="login-panel panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">请登录</h3>
                </div>
                <div class="panel-body">
                    <form role="form" method="post" action="<%=basePath%>doLogin">
                        <fieldset>
                            <c:if test="${error!=null}">
                                <div class="form-group has-error">
                                    <span class="help-block">${error}</span>
                                </div>
                            </c:if>
                            <div class="form-group">
                                <input class="form-control" placeholder="用户名" name="username" id="username" type="text" autofocus>
                            </div>
                            <div class="form-group">
                                <input class="form-control" placeholder="密码" name="password" id="password" type="password" value="">
                            </div>
                            <div class="checkbox">
                                <label>
                                    <input name="remember" type="checkbox" value="Remember Me">记住我
                                </label>
                            </div>
                            <!-- Change this to a button or input when using this as a form -->
                            <button href="index.html" class="btn btn-lg btn-success btn-block">登录</button>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<jsp:include page="/WEB-INF/admin/common/bottom.jsp"/>

<script>
    var modulus = '${applicationScope.modulus}';
    var exponent = '${applicationScope.exponent}';
</script>

<script src="<%=basePath%>static/jquery-validation/jquery.validate.min.js"></script>
<script src="<%=basePath%>static/jquery-validation/jquery.validate.extend.js"></script>
<script src="<%=basePath%>static/js/common/security.js"></script>
<script src="<%=basePath%>static/js/front/login/login.js"></script>

</body>
</html>
